<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title></title>
</head>
<body>
<div class="content">
<div class="main-content">
	<table class="table-striped  table table-bordered ">
				<thead>
					<tr>
						<th><spring:message code="grade.examGradeId" /></th>
						<th><spring:message code="grade.examStu" /></th>
						<th><spring:message code="grade.examSubject" /></th>
						<th><spring:message code="grade.examGradePoint" /></th>
						<th><spring:message code="grade.examGradeSum" /></th>
						<th><spring:message code="grade.examGradeTime" /></th>
						<th style="width: 3.5em;"><spring:message code="grade.examGradeFlag" /></th>
					</tr>
				</thead>
				<tbody>
					<c:forEach items="${page.datas }" var="gd">
						<tr>
							<td>${gd.examGradeId }</td>
							<td>
							    ${gd.examStuId }
							</td>
							<td>${gd.examSubjectId }</td>
							<td>${gd.examGradePoint }</td>
							<td>${gd.examGradeSum }</td>
							<td>${gd.examSubjectTotaltime }</td>
							<td>
								<c:choose>
									<c:when test="${gd.examGradeFlag eq 1}">
										已考
									</c:when>
									<c:otherwise>
										<a href="${pageContext.request.contextPath}/exam/examList/${gd.examSubjectId}"><input type="button" value="开始考试"/></a>
									</c:otherwise>
								</c:choose>
							
							</td>
						</tr>
					</c:forEach>


					<tr>
						<td colspan="11"><jsp:include page="/common/page.jsp">
								<jsp:param value="grade" name="url" />
								<jsp:param value="${page.totalSize }" name="items" />
								<jsp:param value="${page.pageSize }" name="pageSize" />
							</jsp:include></td>
					</tr>
				</tbody>
			</table>
</body>
</html>